using System.ComponentModel.DataAnnotations;

namespace FytSoa.Application.Crm.Param;

/// <summary>
/// 支持添加客户+联系人
/// </summary>
public class CrmCustomerContact
{
    public CrmCustomerAdd Customer { get; set; }
    
    public CrmContactAdd Contact { get; set; }
}

/// <summary>
/// 添加客户对象
/// </summary>
public class CrmCustomerAdd : AppEntity
{
    /// <summary>
    /// 客户编号
    /// </summary>
    public string Number { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    [Required]
    [StringLength(255)]
    public string Name { get; set; }

    /// <summary>
    /// 客户电话
    /// </summary>
    [Required]
    [StringLength(255)]
    public string Tel { get; set; }

    /// <summary>
    /// 客户邮箱
    /// </summary>
    public string Email { get; set; }

    /// <summary>
    /// 客户来源
    /// </summary>
    [Required]
    public long Source { get; set; }

    /// <summary>
    /// 负责人
    /// </summary>
    [Required]
    public long EmployeeId { get; set; } = 0;

    /// <summary>
    /// 客户级别
    /// </summary>
    [Required]
    public long Level { get; set; }
    
    /// <summary>
    /// 0=线索1=正常2=公海
    /// </summary>
    [Required]
    public int Type { get; set; } = 1;
    
    /// <summary>
    /// 网址
    /// </summary>
    public string SiteUrl { get; set; }

    /// <summary>
    /// 客户行业
    /// </summary>
    [Required]
    public long Industry { get; set; }

    /// <summary>
    /// 所属区县
    /// </summary>
    public string County { get; set; }

    /// <summary>
    /// 详细地址
    /// </summary>
    public string Address { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string Remark { get; set; }

}